<template>
  <div class="da">
      <ul>
          <li v-for="(v,i) in data" :key="i">
              <div class="da-left">
                  <img :src="v.imgd" alt="">
              </div>
              <div class="da-rigth">
                  <h1>{{v.text1}}</h1>
                  <span><b>{{v.price2}}</b>{{v.text2}}</span>
                  <a href="">
                      <van-icon class="van" name="cart-o" />
                  </a>
              </div>
          </li>
      </ul>
  </div>
</template>

<script>
export default {
    props:["data"]
}
</script>

<style scoped>
    .da{
        width: 100%;
        height: 100%;
    }
    .da>ul{
        width: 100%;
        height: 100%;
        /* background-color: aquamarine; */
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    .da>ul>li{
        width: 90%;
        height: 1.25rem;
        background-color: white;
        border-radius: 10px;
        display: flex;
        overflow: hidden;
        margin-top: 0.1rem;
    }
    .da-left{
        width: 30%;
        height: 100%;
        /* background-color: bisque; */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .da-left>img{
        width: 0.94rem;
        height: 0.94rem;
    }
    .da-rigth{
        width: 70%;
        height: 100%;
        /* background-color: blueviolet; */
        position: relative;
    }
    .da-rigth>h1{
        font-size: 0.15rem;
        font-family: "黑体";
        margin-top: 0.1rem;
        margin-bottom: 0.62rem;
    }
    .da-rigth>span{
        color: #d2d2d2;
    }
    .da-rigth>span>b{
        color: #ed7a60;
    }
    .da-rigth>a{
        display: inline-block;
        width: 0.24rem;
        height: 0.24rem;
        background-color: #4facf8;
        border-radius: 50%;
        position: absolute;
        right: 10%;
        text-align: center;
        line-height: 0.32rem;
    }
    .van{
        color: white;
        font-size: 0.15rem;
    }
</style>